<?php

class IndexController extends Controller
{
	public function show()
	{
		//支持wap方式浏览
		if(false!==strpos($_SERVER['HTTP_ACCEPT'], 'vnd.wap.wml'))
		{
			$this->redirect('./?a=wap');
		}
		
		$page	=	Lib::get('page','int');
		$list	=	Book::getList($page);
		
		$this->assign('list', $list);
		$this->display();
	}
	
}

?>